package com.tc.vms.producer;

import com.tc.vms.message.SendResultType;

/**
 * Created by yonghua.zhang on 2015/12/12.
 */
public class SendResult {
    private final SendResultType sendResultType;
    private final String messageId;
    private final String lastError;

    public SendResult(SendResultType sendResultType, String messageId, String error) {
        this.sendResultType = sendResultType;
        this.messageId = messageId;
        this.lastError = error;
    }

    public SendResultType getSendResultType() {
        return sendResultType;
    }

    public String getMessageId() {
        return messageId;
    }

    public String getLastError() {
        return lastError;
    }

    @Override
    public String toString() {
        return "SendResult{" +
                "sendResultType=" + sendResultType +
                ", messageId='" + messageId + '\'' +
                ", lastError='" + lastError + '\'' +
                '}';
    }
}
